package model.commands.environment;

import model.Environment;
import model.SyntaxErrorException;
import model.commands.Command;

/**
 * Name:
 * PENCOLOR
 * PC
 * 
 * Description:
 * sets size of the pen to be pixels thickness
 * returns given pixels
 *
 * @author Angelica Schwartz
 */
public class PenColorCommand extends Command {
    
    @Override
    public int evaluate (Environment e) throws SyntaxErrorException {
        int penColor = e.invokeCommandableMethod(Environment.GET_PEN_COLOR).getPenColor();
        return penColor;
    }
}
